﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace Logic
{
    public class FlowerCalculator
    {
        public static int CalculatePrice(Division division)
        {
            int totalPrice = 0;

            List<AbstractFlower> flowers = division.Flowers;

            foreach (AbstractFlower flower in flowers)
            {
                totalPrice += flower.Price;
            }

            return totalPrice;
        }
    }
}
